import { createRouter, createWebHistory } from "vue-router";
import LinkMan from '../View/LinkMan'
import Message from '../View/Message'
import NewsFeed from '../View/NewsFeed'
import Login from '../View/Login'
import SignIn from '../View/SignIn'
import SocialExt from '../View/SocialExt'
import Publish from '../View/Publish.vue' 
import Chat from '../View/Chat.vue'

export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      component: Login
    },
    {
      path: '/signin',
      component: SignIn
    },
    {
      path: '/linkman',
      component: LinkMan
    },
    {
      path: '/newsfeed',
      component: NewsFeed
    },
    {
      path: '/message',
      component: Message
    },
    {
      path: '/socialext',
      component: SocialExt
    },
    {
      path: '/publish',
      component: Publish
    },
    {
      path: '/chat',
      name: 'chat',
      component: Chat
    }
  ]
})